﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" AutoEventWireup="true" CodeBehind="Index.aspx.cs" Inherits="Onion.Web.Views.Home.Index" %>
<%@ Import Namespace="Onion.Core.Domain"%>

<asp:Content ID="indexContent" ContentPlaceHolderID="MainContent" runat="server">
    <h2><%= Html.Encode(ViewData["Message"]) %></h2>

    <ul>
      <% foreach(Reason reason in (IEnumerable<Reason>)ViewData["reasons"]) { %>
         <li><%= reason.Text %></li>
      <% } %>
    </ul>

    <p>
        To learn more about ASP.NET MVC visit <a href="http://asp.net/mvc" title="ASP.NET MVC Website">http://asp.net/mvc</a>.
    </p>
</asp:Content>
